import tushare as ts
import requests
from helpers import getJsonForData




data = ts.get_stock_basics()
data = getJsonForData(data)
request_data = {
    'type':"get_stock_basics",
    'data':data,
}
requests.post('http://gst.anyuzhe.com/api/external_data',request_data)

data = ts.get_today_all()
data = getJsonForData(data)

request_data = {
    'type':"get_today_all",
    'data':data,
}
requests.post('http://gst.anyuzhe.com/api/external_data',request_data)

